Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SketchOnFace UI #1664

Merged
merged 51 commits into from
Mar 21, 2024
Merged

SketchOnFace UI #1664

merged 51 commits into from
Mar 21, 2024

Conversation

Irev-Dev
Copy link
Collaborator

@Irev-Dev Irev-Dev commented Mar 7, 2024

Note that the sketch on face stuff will have breaking changes in future, If you have access see: https://github.com/KittyCAD/engine/issues/1874

As we roll into features like SketchOnFace and fillets our ability to associate 3d features back to source code becomes much more important e.g. adding a tag in the correct place in the code so that we reference a face to sketch on or reference an edge to fillet. Because of this is was about time to give the selections some attention. Previous the way they were setup had a single code path for selecting either from the 3d scene, or placing your cursor directly in codemirror (because selections are just sourceRanges/cursor positions). The single code path seemed like a good idea since to made the code DRY, but it was dry spaghetti that callbacks spread all over the place

plus overhaul of selections

  • All existing playwright tests (including selection tests ofc) pass again.
  • Rotating the camera shouldn't nukes selections
  • Close faces can't be selected properly (must not be added to artifact map?) (covered else where)
  • start end caps should be selectable 663940a & 2e4206c
  • id's that we the FE doesn't recognise (not in the artifactMap) should be cleared by default, and we should work to makes sure that entity get's into the artifact map. 93f7ff6
  • sketch on face without z-up has some quirks to be worked through.
  • start sketch on END of an extrude that had already been extruded from another parent uses the parent's extrude variable (2e4206c)
  • close segments/faces should be selectable and sketchOnFace-able d3d148c
  • clean up lastCodeMirrorSelectionUpdatedFromScene(646b5c2)
  • add unit test for the extrusion codemod (9129f9a)
  • selecting the "END" cap snaps to the "START" cap (15dbf2c)

optional

  • Selecting a whole section of code should highlight many edges.
  • maybe update sketchEnginePathId in xstate context
  • I seem to have broken the sketch grid? (edit it's main so not related to this change)

Things to ask Josh about

-- edit, the chat Josh and I had resulted in this, we're going to keep chatting about it.

  • Default origins for sketches,
  • Camera movement on entering a sketch (related to Alignment of extrude walls below)

Things to bring up with Mike

Things to bring up with Jess

-- edit had a chat with Jess, edge ids on the sketch group should probably be done in collaboration with the grackle team since that migration is underway. Mock safe execution hacks are probably fine, I'll just leave a bunch of comments.

  • Edge at the end of the extrusion are not selectable ( did try using "opposite edge" endpoint as the selection event comes through from the engine, it requires face_id an object_id, and the context I get from the engine is only the entity_id of the edge so I don't think it's possible)
  • Edges parallel to the extrusion direction are not selectable (similar to the above)
  • Talk to someone about execution being mock safe (extrude face ids are needed) basically changes in this file
  • sketchGroup.on doesn't quiet have the info I need, have to rummage around to cobble it together (vague point probably covered by some of the above).

Copy link

vercel bot commented Mar 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview Mar 21, 2024 10:24pm

@Irev-Dev Irev-Dev changed the title Selections refactor SketchOnFace UI Mar 11, 2024
Copy link

codecov bot commented Mar 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.54%. Comparing base (5a585a6) to head (ee227ad).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1664      +/-   ##
==========================================
+ Coverage   85.53%   85.54%   +0.01%     
==========================================
  Files          46       46              
  Lines       19312    19326      +14     
==========================================
+ Hits        16519    16533      +14     
  Misses       2793     2793              
Flag Coverage Δ
wasm-lib 85.54% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Irev-Dev Irev-Dev merged commit 0e916cf into main Mar 21, 2024
20 checks passed
@Irev-Dev Irev-Dev deleted the kurt-selections-refactor branch March 21, 2024 23:23
@Irev-Dev Irev-Dev mentioned this pull request Apr 10, 2024
47 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant